import request from "@/utils/request";

// 合同剩余可使用数量列表
export function listElectronicVisa(query) {
  return request({
    url: "/manage/department/electronicVisa/list",
    method: "get",
    params: query,
  });
}

// 查询企业电子合同数量操作记录列表
export function listElectronicVisaRecord(query) {
  return request({
    url: "/manage/department/electronicVisaRecord/list",
    method: "get",
    params: query,
  });
}

// 添加合同数
export function addContractNumber(data) {
  return request({
    url: "/manage/department/electronicVisa/add/contractNumber",
    method: "put",
    data: data,
  });
}

// 扣减合同数
export function subtractContractNumber(data) {
  return request({
    url: "/manage/department/electronicVisa/subtract/contractNumber",
    method: "put",
    data: data,
  });
}

// 电子签授权认证
export function electronicVisaAuth(id) {
  return request({
    url: "/manage/department/electronicVisa/sendSmsAuth/"+id,
    method: "put",
  });
}
